import request from '../utils/request.js';
//添加
export function getAddAction(data){
	return request({
		url:'/getAddAction?token='+uni.getStorageSync('loginInfo').token,
		method:'POST',
		data,
	})
}
export function GoodsFileAdd(data){
	return request({
		url:'/GoodsFileAdd',
		method:'POST',
		data,
	})
}
//修改
export function getEditAction(data){
	return request({
		url:'/getEditAction?token='+uni.getStorageSync('loginInfo').token,
		method:'POST',
		data,
	})
}
//根据表名查询所有数据 不需要登录
export function GoodsFileInquiry(data){
	return request({
		url:'/GoodsFileInquiry',
		method:'POST',
		data,
	})
}
export function getInquiryAction(data){
	return request({
		url:'/getInquiryAction?token='+uni.getStorageSync('loginInfo').token,
		method:'POST',
		data,
	})
}
//根据表名和某属性查询
export function getInquiryIDAction(data){
	return request({
		url:'/getInquiryIDAction?token='+uni.getStorageSync('loginInfo').token,
		method:'POST',
		data,
	})
}
//根据表名和某属性查询带原值
export function getInquiryIDOriginal(data){
	return request({
		url:'/getInquiryIDOriginal?token='+uni.getStorageSync('loginInfo').token,
		method:'POST',
		data,
	})
}
//根据表名和主子表结构查询出主表和其子表 带原值
export function getSubtableInquiryOriginal(data){
	return request({
		url:'/getSubtableInquiryOriginal?token='+uni.getStorageSync('loginInfo').token,
		method:'POST',
		data,
	})
}
//通用分页查询带token
export function getTableInquiryAction(data){
	return request({
		url:'/getTableInquiryAction?token='+uni.getStorageSync('loginInfo').token,
		method:'POST',
		data,
	})
}
//通用分页查询
export function getTableInquiry(data){
	return request({
		url:'/getTableInquiry',
		method:'POST',
		data,
	})
}
//通用主键查原值
export function GoodsInquiryKeyOriginal(data){
	return request({
		url:'/GoodsInquiryKeyOriginal',
		method:'POST',
		data,
	})
}
//解析营业执照图片
export function BusinessPIC(data){
	return request({
		url:'/BusinessPIC?token='+uni.getStorageSync('loginInfo').token,
		method:'POST',
		data,
	})
}
//检查企业是否重复认证
export function CheckRegisterAction(data){
	return request({
		url:'/CheckRegisterAction?token='+uni.getStorageSync('loginInfo').token,
		method:'POST',
		data,
	})
}
//获取服务器json
export function getJsonInquiry(data){
	return request({
		url:'/getJsonInquiry',
		method:'POST',
		data,
	})
}
//数据存服务器端redis
export function RedisAdd(data){
	return request({
		url:'/RedisAdd',
		method:'POST',
		data,
	})
}
//数据存服务器端redis
export function isPhoneCode(data){
	return request({
		url:'/isPhoneCode',
		method:'POST',
		data,
	})
}
//数据存服务器端redis
export function GetRedis(data){
	return request({
		url:'/GetRedis',
		method:'POST',
		data,
	})
}
//识别身份证
export function parseIDCardAction(data){
	return request({
		url:'/parseIDCardAction',
		method:'POST',
		data,
	})
}
//识别电汇发票
export function parseBankReceiptVoucherAction(data){
	return request({
		url:'/parseBankReceiptVoucherAction',
		method:'POST',
		data,
	})
}

